home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / xlib04.zip / XTEXT.H < prev    next >
Text File  |  1992-11-04  |  2KB  |  79 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XTEXT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XTEXT_H_
  22. #define _XTEXT_H_
  23.  
  24.  
  25. #define FONT_8x8  0
  26. #define FONT_8x15 1
  27. #define FONT_USER 2
  28.  
  29. /* FUNCTIONS =========================================================== */
  30.  
  31. extern WORD x_text_init(void);            /* Initialize text functionns  */
  32.  
  33. extern void x_set_font(
  34.         WORD FontId);             /* Set the font style          */
  35.  
  36. extern void x_register_userfont(          /* register a user defined font */
  37.         char far *UserFontPtr);
  38.  
  39. extern void x_put_char(                   /* Draw a text character using  */
  40.                 char ch,                  /* the currently active font    */
  41.                 WORD X,
  42.                 WORD Y,
  43.                 WORD PgOffs,
  44.                 WORD Color);
  45.  
  46. /* the folowing function is from xprintf.c but is included due to its     */
  47. /* close relationship with this module                                    */
  48.  
  49. void x_printf(                          /* formatted text output */
  50.            WORD x,
  51.            WORD y,
  52.            WORD ScrnOffs,
  53.            WORD color,
  54.            char *ln,...);
  55.  
  56. void x_bgprintf(                          /* formatted text output */
  57.            WORD x,
  58.            WORD y,
  59.            WORD ScrnOffs,
  60.            WORD fgcolor,
  61.            WORD bgcolor,
  62.            char *ln,...);
  63.  
  64.  
  65. /* VARIABLES =========================================================== */
  66.  
  67. extern BYTE CharHeight;     /* Char height of currently active font        */
  68. extern BYTE CharWidth;      /* Char width of currently active font         */
  69. extern BYTE FirstChar;      /* First char in the curr. active font         */
  70.  
  71. extern BYTE UserCharHeight; /* Char height of currentle regist'd user font */
  72. extern BYTE UserCharWidth;  /* Char height of currentle regist'd user font */
  73. extern BYTE UserFirstChar;  /* First char of the curr. regist'd usera font */
  74.  
  75.  
  76. #endif
  77.  
  78.  
  79.